package com.yuandian.management.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuandian.api.management.entity.ConfSegmentResourceRelation;

import java.util.List;
import java.util.Map;

/**
 * 网端与资源关系表-Service接口
 * @author zfsn
 * @date 2023-5-31
 */
public interface ConfSegmentResourceRelationService extends IService<ConfSegmentResourceRelation> {

	/**
	 * 获取服务资源
	 *
	 * @param confSegmentResourceRelation
	 * @return 通用返回对象
	 */
	Page<Map<String,Object>> listPage(ConfSegmentResourceRelation confSegmentResourceRelation);

	/**
	 * 检查同系统中是否存在以编辑后的url为前缀的服务资源(子字符串)
	 * @param confSegmentResourceRelation
	 * @return
	 */
	List<ConfSegmentResourceRelation> checkPrefixUrlExsit(ConfSegmentResourceRelation confSegmentResourceRelation);

	Long insertAndGetId(ConfSegmentResourceRelation csrVo);

	List<ConfSegmentResourceRelation> listData(ConfSegmentResourceRelation csrVo);
}